﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Model;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model
{
    /// <summary>
    /// 资源
    /// </summary>
    [Serializable]
    [Table("Res")]
    public class Res : UserID
    {
        /// <summary>
        /// 资源名称
        /// </summary>
        [Display(Name = "名称")]
        [Required(ErrorMessage = "名称必填")]
        public string Name { get; set; }
        /// <summary>
        ///  资源值 ,如网址、方法名
        /// </summary>

        public string Value { get; set; }  
        /// <summary>
        /// 资源简介
        /// </summary>
        [Display(Name = "简介")]
        public string Intro { get; set; }
    }
}